﻿/*
 * Created by SharpDevelop.
 * User: xieen
 * Date: 2013-08-26
 * Time: 15:01
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace GoF23Learning._20.State_Pattern
{
	/// <summary>
	/// Description of Class1.
	/// </summary>
	public class DocuemntProcess
	{
		public void ProcessIf(DocuemntState state)
		{
			if( state == DocuemntState.ReadOnly)
			{
				
			}
			else if(state == DocuemntState.Editable)
			{
				
			}
			else{
				
			}
		}
		 
		public void ProcessSwitch(DocuemntState state)
		{
			switch (state) {
				case DocuemntState.ReadOnly:
					
					break;
				case DocuemntState.Editable:
					
					break;
				default:
					throw new Exception("Invalid value for DocuemntState");
			}
		}
	}
}
